package org.jeecg.modules.xxgx.djgl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.innerApi.common.requestDto.InvoiceParam;
import org.jeecg.modules.xxgx.djgl.entity.CsXxDkdj;
import org.jeecg.modules.xxgx.djgl.entity.CsXxDkdjmx;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 待开单据
 * @Author: jeecg-boot
 * @Date:   2023-08-18
 * @Version: V1.0
 */
public interface ICsXxDkdjService extends IService<CsXxDkdj> {

	/**
	 * 添加一对多
	 *
	 * @param csXxDkdj
	 * @param csXxDkdjmxList
	 */
	public void saveMain(CsXxDkdj csXxDkdj, List<CsXxDkdjmx> csXxDkdjmxList) ;
	
	/**
	 * 修改一对多
	 *
   * @param csXxDkdj
   * @param csXxDkdjmxList
	 */
	public void updateMain(CsXxDkdj csXxDkdj, List<CsXxDkdjmx> csXxDkdjmxList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	/**
	 * 更新待开单据开票状态
	 * @param invoiceParam
	 * @param result
	 */
	public void updateDkdjKjzt(InvoiceParam invoiceParam, Result result);
	
}
